Skip to main content
Version: 5.x.x

ExtractUnionAdapter


import { ExtractUnionAdapter } from "@hyper-fetch/core"

Description

Defined in adapter/adapter.types.ts:43

Preview

type ExtractUnionAdapter<Adapter,Values> = Extract<Adapter, AdapterType<Values[options], Values[method], Values[status], Values[extra], Values[queryParams], Values[endpointType]>> extends AdapterInstance ? Extract<Adapter, AdapterType<Values[options], Values[method], Values[status], Values[extra], Values[queryParams], Values[endpointType]>> : never;

Structure

Extract<Adapter, AdapterType<Values[options], Values[method], Values[status], Values[extra], Values[queryParams], Values[endpointType]>> extends AdapterInstance ? Extract<Adapter, AdapterType<Values[options], Values[method], Values[status], Values[extra], Values[queryParams], Values[endpointType]>> : never